export const columns = [
    {
        key: "content",
        title: "内容",
        showEllipsis: true,
        width: 200,
    },
    {
        key: "category",
        title: "反映类型",
        customRender: (text) => text && text.title,
        width: 150,
    },
    {
        key: "department",
        title: "问题所属单位",
        customRender: (text) =>
            text && typeof text === "object" ? text.name : text,
        width: 150,
    },
    {
        key: "name",
        title: "反映人姓名",
        width: 150,
    },
    {
        key: "phone",
        title: "联系方式",
        width: 150,
    },
    {
        title: "反映时间",
        key: "created_at",
        width: 150,
    },
    {
        key: "status",
        title: "处理状态",
        width: 150,
    },
    {
        key: "handle_time",
        title: "处理时间",
        width: 150,
    },
    {
        title: "超期状态",
        key: "warning_type",
        width: 150,
    },
    {
        key: "action",
        title: "操作",
        width: 200,
        fixed: 'right',
    },
];

export const data = [
    {
        key: "1",
        name: "John Brown",
        age: 32,
        address: "New York No. 1 Lake Park",
        tags: ["nice", "developer"],
        id: 1,
    },
    {
        key: "2",
        name: "Jim Green",
        age: 42,
        address: "London No. 1 Lake Park",
        tags: ["loser"],
        id: 2,
    },
    {
        key: "3",
        name: "Joe Black",
        age: 32,
        address: "Sidney No. 1 Lake Park",
        tags: ["cool", "teacher"],
        id: 3,
    },
];

export const columnss = [
    {
        title: "Name",
        key: "name",
    },
    {
        title: "Age",
        key: "age",
    },
    {
        title: "Address",
        key: "address",
    },
];
